package Year2021.month10.Day21.Day25;

public class AirplaneTest {
    public static void main(String[] args) {
        Airplane  airplane=new Aircraft(400.5,1.2,"民航717");
        airplane.takeOff(airplane);
        airplane.speedUP(airplane);
        airplane.land(airplane);
        Airplane airplane1=new Fighter("战斗机001",45.5,2.1);
        airplane1.takeOff(airplane);
        airplane1.speedUP(airplane);
        ((Fighter) airplane1).launchMissile();
        ((Fighter) airplane1).hoverLow();
        airplane.land(airplane);



    }
}
